<?php
/**
 * 后台路由规则
 *
 * @author: yanxs <541139655@qq.com>
 * @version: 1.0
 * @date: 2021/3/8
 */
Route::group(['namespace'=>'Backend','middleware' => ['web']],function () {

    Route::get('login', 'LoginController@index');
    Route::post('login', 'LoginController@dologin');

    Route::post('/tips_success', 'IndexController@tipsSuccess');
    Route::post('/tips_warn', 'IndexController@tipsWarn');
    Route::get('demo/kd', 'DemoController@kingdeeDemo'); //列表
    Route::group(["middleware" => ['common.auth']], function() {
        Route::get('', 'IndexController@index');
        Route::get('dashboard', 'DashboardController@index');
        Route::get('logout', 'IndexController@logout');
        //demo样例 模块 start
        Route::get('demo', 'DemoController@index'); //列表
        Route::post('demo/list', 'DemoController@table'); //记录
        Route::get('demo/form', 'DemoController@form'); //详情
        Route::post('demo/save', 'DemoController@save'); //添加
        Route::post('demo/copy', 'DemoController@copy'); //状态更新
        Route::get('demo/del/{id}', 'DemoController@delete'); //刪除指定记录
        Route::post('demo/deletes', 'DemoController@batchDelete'); //刪除多条记录
        Route::post('demo/review', 'DemoController@review');  //审核 反审核
        Route::post('demo/status', 'DemoController@status'); //状态更新
        Route::get('demo/export/{data}', 'DemoController@export'); //导出
        Route::post('demo/import', 'DemoController@import'); //导入
        //demo样例 模块 end

        //---------------------权限相关路由start--------------------//
        Route::any('auth/admin', 'Auth\AdminController@index'); //管理员主页
        Route::post('auth/admin/list', 'Auth\AdminController@table'); //列表
        Route::get('auth/admin/form', 'Auth\AdminController@form'); //添加/编辑
        Route::post('auth/admin/save', 'Auth\AdminController@save'); //保存
        Route::post('auth/admin/update', 'Auth\AdminController@update'); //保存
        Route::get('auth/admin/del/{id}', 'Auth\AdminController@delete'); //删除
        Route::post('auth/admin/deletes', 'Auth\AdminController@batchDelete'); //刪除多条记录

        //角色组路由
        Route::get('auth/group', 'Auth\GroupController@index'); //列表
        Route::post('auth/group/list', 'Auth\GroupController@table'); //记录
        Route::get('auth/group/form', 'Auth\GroupController@form'); //详情
        Route::post('auth/group/save', 'Auth\GroupController@save'); //添加
        Route::post('auth/group/update', 'Auth\GroupController@update'); //更新
        Route::post('auth/group/copy', 'Auth\GroupController@copy'); //状态更新
        Route::get('auth/group/del/{id}', 'Auth\GroupController@delete'); //刪除指定记录
        Route::post('auth/group/deletes', 'Auth\GroupController@batchDelete'); //刪除多条记录
        Route::post('auth/group/review', 'Auth\GroupController@review');  //审核 反审核
        Route::post('auth/group/status', 'Auth\GroupController@status'); //状态更新
        Route::get('auth/group/export/{data}', 'Auth\GroupController@export'); //导出
        Route::post('auth/group/import', 'Auth\GroupController@import'); //导入
        //角色组路由end

        //菜单规则路由start
        Route::get('auth/rule', 'Auth\RuleController@index'); //列表
        Route::post('auth/rule/list', 'Auth\RuleController@table'); //记录
        Route::get('auth/rule/form', 'Auth\RuleController@form'); //详情
        Route::post('auth/rule/save', 'Auth\RuleController@save'); //添加
        Route::post('auth/rule/copy', 'Auth\RuleController@copy'); //状态更新
        Route::get('auth/rule/del/{id}', 'Auth\RuleController@delete'); //刪除指定记录
        Route::post('auth/rule/deletes', 'Auth\RuleController@batchDelete'); //刪除多条记录
        Route::post('auth/group/review', 'Auth\RuleController@review');  //审核 反审核
        Route::post('auth/rule/status', 'Auth\RuleController@status'); //状态更新
        Route::get('auth/rule/export/{data}', 'Auth\RuleController@export'); //导出
        Route::post('auth/rule/import', 'Auth\RuleController@import'); //导入
        //菜单规则路由end

        //---------------------权限相关路由end--------------------//


        //自动生成路由
        Route::get('basic/currency', 'Basic\CurrencyController@index'); //列表
        Route::post('basic/currency/list', 'Basic\CurrencyController@table'); //记录
        Route::get('basic/currency/form', 'Basic\CurrencyController@form'); //详情 弹窗
        Route::get('basic/currency/detail', 'Basic\CurrencyController@detail'); //详情 整页
        Route::post('basic/currency/save', 'Basic\CurrencyController@save'); //添加
        Route::post('basic/currency/copy', 'Basic\CurrencyController@copy'); //状态更新
        Route::get('basic/currency/del/{id}', 'Basic\CurrencyController@delete'); //刪除指定记录
        Route::post('basic/currency/deletes', 'Basic\CurrencyController@batchDelete'); //刪除多条记录
        Route::post('basic/currency/review', 'Basic\CurrencyController@review');  //审核 反审核
        Route::post('basic/currency/status', 'Basic\CurrencyController@status'); //状态更新
        Route::get('basic/currency/export/{data}', 'Basic\CurrencyController@export'); //导出
        Route::post('basic/currency/import', 'Basic\CurrencyController@import'); //导入
        //自动生成路由end

        //自动生成路由
        Route::get('sysconf/basic', 'Sysconf\BasicController@index'); //列表
        Route::post('sysconf/basic/list', 'Sysconf\BasicController@table'); //记录
        Route::get('sysconf/basic/form', 'Sysconf\BasicController@form'); //详情
        Route::post('sysconf/basic/save', 'Sysconf\BasicController@save'); //添加
        Route::post('sysconf/basic/copy', 'Sysconf\BasicController@copy'); //状态更新
        Route::get('sysconf/basic/del/{id}', 'Sysconf\BasicController@delete'); //刪除指定记录
        Route::post('sysconf/basic/deletes', 'Sysconf\BasicController@batchDelete'); //刪除多条记录
        Route::post('sysconf/basic/review', 'Sysconf\BasicController@review');  //审核 反审核
        Route::post('sysconf/basic/status', 'Sysconf\BasicController@status'); //状态更新
        Route::get('sysconf/basic/export/{data}', 'Sysconf\BasicController@export'); //导出
        Route::post('sysconf/basic/import', 'Sysconf\BasicController@import'); //导入
        //自动生成路由end
    
        //自动生成路由
        Route::get('sysconf/areas', 'Sysconf\AreasController@index'); //列表
        Route::post('sysconf/areas/list', 'Sysconf\AreasController@table'); //记录
        Route::get('sysconf/areas/form', 'Sysconf\AreasController@form'); //详情
        Route::post('sysconf/areas/save', 'Sysconf\AreasController@save'); //添加
        Route::post('sysconf/areas/copy', 'Sysconf\AreasController@copy'); //状态更新
        Route::get('sysconf/areas/del/{id}', 'Sysconf\AreasController@delete'); //刪除指定记录
        Route::post('sysconf/areas/deletes', 'Sysconf\AreasController@batchDelete'); //刪除多条记录
        Route::post('sysconf/areas/review', 'Sysconf\AreasController@review');  //审核 反审核
        Route::post('sysconf/areas/status', 'Sysconf\AreasController@status'); //状态更新
        Route::get('sysconf/areas/export/{data}', 'Sysconf\AreasController@export'); //导出
        Route::post('sysconf/areas/import', 'Sysconf\AreasController@import'); //导入
        //自动生成路由end

        //自动生成路由
        Route::get('sysconf/payment', 'Sysconf\PaymentController@index'); //列表
        Route::post('sysconf/payment/list', 'Sysconf\PaymentController@table'); //记录
        Route::get('sysconf/payment/form', 'Sysconf\PaymentController@form'); //详情
        Route::post('sysconf/payment/save', 'Sysconf\PaymentController@save'); //添加
        Route::post('sysconf/payment/copy', 'Sysconf\PaymentController@copy'); //状态更新
        Route::get('sysconf/payment/del/{id}', 'Sysconf\PaymentController@delete'); //刪除指定记录
        Route::post('sysconf/payment/deletes', 'Sysconf\PaymentController@batchDelete'); //刪除多条记录
        Route::post('sysconf/payment/review', 'Sysconf\PaymentController@review');  //审核 反审核
        Route::post('sysconf/payment/status', 'Sysconf\PaymentController@status'); //状态更新
        Route::get('sysconf/payment/export/{data}', 'Sysconf\PaymentController@export'); //导出
        Route::post('sysconf/payment/import', 'Sysconf\PaymentController@import'); //导入
    //自动生成路由end

        //自动生成路由
        Route::get('sysconf/areas', 'Sysconf\AreasController@index'); //列表
        Route::post('sysconf/areas/list', 'Sysconf\AreasController@table'); //记录
        Route::get('sysconf/areas/form', 'Sysconf\AreasController@form'); //详情
        Route::post('sysconf/areas/save', 'Sysconf\AreasController@save'); //添加
        Route::post('sysconf/areas/copy', 'Sysconf\AreasController@copy'); //状态更新
        Route::get('sysconf/areas/del/{id}', 'Sysconf\AreasController@delete'); //刪除指定记录
        Route::post('sysconf/areas/deletes', 'Sysconf\AreasController@batchDelete'); //刪除多条记录
        Route::post('sysconf/areas/review', 'Sysconf\AreasController@review');  //审核 反审核
        Route::post('sysconf/areas/status', 'Sysconf\AreasController@status'); //状态更新
        Route::get('sysconf/areas/export/{data}', 'Sysconf\AreasController@export'); //导出
        Route::post('sysconf/areas/import', 'Sysconf\AreasController@import'); //导入
        //自动生成路由end

        //自动生成路由
        Route::get('sysconf/payment', 'Sysconf\PaymentController@index'); //列表
        Route::post('sysconf/payment/list', 'Sysconf\PaymentController@table'); //记录
        Route::get('sysconf/payment/form', 'Sysconf\PaymentController@form'); //详情
        Route::post('sysconf/payment/save', 'Sysconf\PaymentController@save'); //添加
        Route::post('sysconf/payment/copy', 'Sysconf\PaymentController@copy'); //状态更新
        Route::get('sysconf/payment/del/{id}', 'Sysconf\PaymentController@delete'); //刪除指定记录
        Route::post('sysconf/payment/deletes', 'Sysconf\PaymentController@batchDelete'); //刪除多条记录
        Route::post('sysconf/payment/review', 'Sysconf\PaymentController@review');  //审核 反审核
        Route::post('sysconf/payment/status', 'Sysconf\PaymentController@status'); //状态更新
        Route::get('sysconf/payment/export/{data}', 'Sysconf\PaymentController@export'); //导出
        Route::post('sysconf/payment/import', 'Sysconf\PaymentController@import'); //导入
        //自动生成路由end

    //自动生成路由
        Route::get('member/level', 'Member\LevelController@index'); //列表
        Route::post('member/level/list', 'Member\LevelController@table'); //记录
        Route::get('member/level/form', 'Member\LevelController@form'); //详情
        Route::post('member/level/save', 'Member\LevelController@save'); //添加
        Route::post('member/level/copy', 'Member\LevelController@copy'); //状态更新
        Route::get('member/level/del/{id}', 'Member\LevelController@delete'); //刪除指定记录
        Route::post('member/level/deletes', 'Member\LevelController@batchDelete'); //刪除多条记录
        Route::post('member/level/review', 'Member\LevelController@review');  //审核 反审核
        Route::post('member/level/status', 'Member\LevelController@status'); //状态更新
        Route::get('member/level/export/{data}', 'Member\LevelController@export'); //导出
        Route::post('member/level/import', 'Member\LevelController@import'); //导入
        //自动生成路由end

        //自动生成路由
        Route::get('member/index', 'Member\IndexController@index'); //列表
        Route::post('member/index/list', 'Member\IndexController@table'); //记录
        Route::get('member/index/form', 'Member\IndexController@form'); //详情
        Route::post('member/index/save', 'Member\IndexController@save'); //添加
        Route::post('member/index/update', 'Member\IndexController@update'); //更新
        Route::post('member/index/copy', 'Member\IndexController@copy'); //状态更新
        Route::get('member/index/del/{id}', 'Member\IndexController@delete'); //刪除指定记录
        Route::post('member/index/deletes', 'Member\IndexController@batchDelete'); //刪除多条记录
        Route::post('member/index/review', 'Member\IndexController@review');  //审核 反审核
        Route::post('member/index/status', 'Member\IndexController@status'); //状态更新
        Route::get('member/index/export/{data}', 'Member\IndexController@export'); //导出
        Route::post('member/index/import', 'Member\IndexController@import'); //导入
        //自动生成路由end
    });
});
